package gam.n1.e.bh;

import gam.n1.areas.Area;
import gam.n1.be.Behavioral;
import gam.n1.e.CancellableEvent;
import org.bukkit.event.Cancellable;

import java.util.function.Function;

/**
 * 表示一种行为即将执行触发事件
 */
public class ActionBehavioralEvent extends CancellableEvent {
    private Behavioral before;
    private Behavioral behavioral;
    private Behavioral after;
    public ActionBehavioralEvent(Behavioral behavioral) {
        this.behavioral = behavioral;
    }

    public Behavioral getBefore() {
        return before;
    }

    public void setBefore(Behavioral before) {
        this.before = before;
    }

    public Behavioral getAfter() {
        return after;
    }

    public void setAfter(Behavioral after) {
        this.after = after;
    }

    public void setBehavioral(Behavioral behavioral) {
        this.behavioral = behavioral;
    }

    public Behavioral getBehavioral() {
        return behavioral;
    }
}
